Unified memory architecture for recording applications

ABSTRACT

An apparatus comprising a first circuit configured to (i) extract video data as data blocks from an input signal and (ii) perform error correction on said data blocks with a delta syndrome based iterative Reed-Solomon decoding, a second circuit configured (i) to decode said video data into a video format in a first state, (ii) encode said-video data to write said video data to a disc in a second state and (iii) share an external memory with said first circuit, and a disc configured to store encoded video data.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application may relate to co-pending U.S. application Ser. No. 11/053,292, filed Feb. 8, 2005, which is hereby incorporated by reference in its entirety.

FIELD OF THE INVENTION

The present invention relates to an optical recording generally and, more particularly, to a method and/or architecture for implementing a unified memory architecture for recording applications.

BACKGROUND OF THE INVENTION

Conventional read/write applications in DVD systems generally use multiple flash memories and synchronous dynamic random access memories (SDRAMs). A front end controller of a DVD system may need a dedicated flash memory and SDRAM to facilitate performing error correction on compressed video data.

Referring to FIG. 1, a diagram of a conventional Reed-Solomon Product Code (RSPC) block 50 used for error correction of digital video is shown. The RSPC block 50 uses rows and columns to encode an array of data bytes. In a DVD application, 172×192 bytes of data are encoded by adding sixteen bytes 52 (i.e., PO) in each column and ten bytes 54 (i.e., PI) in each row to form the final RSPC code 50 of 182×208 bytes. To better decode an RSPC block 50, iterative methods are conventionally used to decode by row and column and then by row and column again until either no more errors exist in the code or a best resulting code is established.

Each iteration is capable of changing up to all of the data bytes in the RSPC block 50 and update the decoding results in response to the changes. The ability to change the data commonly means that either the data block is saved locally or a lot of bandwidth is used moving the data back and forth from an external memory over a memory bus. Conventional decoding methods access each of the data bytes multiple times during processing. For example, after finishing decoding of a particular row, some of the data bytes in the particular row are often updated to correct errors found by the decoding. Therefore, when column decoding begins, column corrections are calculated based on partially corrected data. A next iteration of row decoding uses the partially corrected data from the previous column decoding, and so on.

As each decoding step processes a row or column, either the data bytes are saved locally until the iterations are complete or the data bytes are accessed across the memory bus in time for the associated row or column decode. Storing all of the data bytes locally results in a large local memory (i.e., 182 columns×208 rows×2 copies=75,712 bytes). Storing all of the data bytes in an external memory consumes a large amount of a memory bus bandwidth.

It would be desirable to reduce memory on a DVD system by implementing delta syndrome based iterative Reed-Solomon product decoder on a DVD system to produce a unified memory architecture for recording applications.

SUMMARY OF THE INVENTION

The present invention concerns an apparatus comprising a first circuit, a second circuit and a disc. The first circuit may be configured to (i) extract video data as data blocks from an input signal and (ii) perform error correction on the data blocks with a delta syndrome based iterative Reed-Solomon decoding. The second circuit may be configured (i) to decode corrected video data into a video format in a first state, (ii) encode the corrected video data in a second state and (iii) share an external memory between the first circuit and the second circuit. The disc may be configured to store encoded video data in the second state.

The objects, features and advantages of the present invention include providing a unified memory that may (i) be implemented in an optical recording system, (ii) reduce memory in a DVD system, (iii) combine memory resources between a front end controller and a back end controller and/or (v) decrease memory bandwidth for the DVD system.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other objects, features and advantages of the present invention will be apparent from the following detailed description and the appended claims and drawings in which:

FIG. 1 is a block diagram of a conventional Reed-Solomon Product Code for error correction in digital video;

FIG. 2 is a block diagram of an example DVD read/write system;

FIG. 3 is a block diagram of a system in accordance with a preferred embodiment of the present invention;

FIG. 4 is a detailed block diagram of an error correction code module in accordance with the present invention;

FIG. 5 is a block diagram of functional flow of a first pass;

FIG. 6 is a block diagram of function flow of a second pass;

FIG. 7 is a block diagram of a circuit for generating an error locator polynomial;

FIG. 8 is a block diagram of a circuit for generating syndromers; and

FIG. 9 is a block diagram of a system in accordance with an alternative embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Referring to FIG. 2, a block diagram of an example DVD read/write system 50 is shown. The system 80 comprises an optical disc 82, a number of SDRAMs 84-84 n (or external memories), a number of flash memories 86 a-86 n, a front end controller 88, a back end controller (or encoder/decoder), and a high disc drive (HDD) 92. The optical disc 82 presents a signal INPUT to the front end controller 88. The front end controller 88 presents a signal OUT1 to the back end controller 90. The interface between the front end controller 88 and the back end controller 90 is implemented as an AT attachment packet interface (ATAPI). The back end controller 90 presents an intermediate signal (e.g., INT) to the hard disc drive 92. The front end controller 88 comprises an error correction code (ECC) module 60.

The front end controller 88 performs all of the functions necessary to extract video data (or extract compressed MPEG data stream) from the optical disc 82 over the signal INPUT. The front end controller 88 may perform analog processing, servo control, channel decoding and error correction. In a first state, the back end controller 90 may decode the corrected video data (or the MPEG data) to recreate the original video content. The back end controller 90 may present the original video content to a monitor (not shown). In a second state, the back end controller 90 (i) may encode the MPEG data and (ii) store the encoded MPEG data on the disc 92. The front end controller 88 and the back end controller 90 each need (i) dedicated memory (e.g., SDRAM 84 a and 84 n) and (ii) dedicated flash memory (e.g., 86 a and 86 n) to extract, decode and store original video content on the disc 92. The system 80 generally performs DVD read/write applications with multiple flash and SDRAM memories.

The ECC module 60 may perform error correction on the RSPC block 50 (or data block) using conventional iterative methods. Such conventional iterative methods store data bytes in the SDRAM 84 a. Storing all of the data bytes in the SDRAM 84 a generally consumes a large amount of memory bus bandwidth. Due to the large amount of memory bandwidth needed, straight forward RSPC decoding would be prohibitive for a shared memory architecture.

Referring to FIG. 3, a block diagram of a system 80′ is shown in accordance with a preferred embodiment of the present invention. The system 80′ may be implemented as a unified memory architecture (UMA). The front end controller 88 generally comprises an ECC module 100 that may perform iterative decoding on the RSPC block 50. The system 80′ generally provides a mechanism to combine the memory (e.g., the SDRAM) of the front end controller 88 with the memory (e.g., SDRAM 84 n) of the back end controller 90 (or encoder/decoder). The SDRAM 84 n generally comprises a scratch memory 96. The ECC module 100 generally comprises a local memory 95. The interface used to allow the front end controller 88 to communicate with the back end controller 90 and the ECC module 100 is a stream data interface plus (or SDP interface). The back end controller 90 may communicate with the hard disc drive 92 via the ATAPI interface.

For the unified memory access (UMA) architecture on the system 80′ to be feasible, the ECC module 100 may need an innovative RS decoding mechanism. The ECC module 100 may be implemented as a delta syndrome based RS product decoding. The ECC module 100 may reduce the amount of memory (e.g., SDRAM and/or flash) needed to perform read/write applications in the DVD system. The ECC module 100 generally reduces the overall bandwidth on the system 80′.

The system 80′ may use a two pass design. In a first pass, the front end controller 88 may send data through the back end controller 90 and store the data in the scratch memory 96 of the SDRAM 84 n. In a second pass, the front end controller 88 may (i) retrieve the data back from the scratch memory 96, (ii) combine the data with correction values generated from the ECC module 100 and (iii) send the corrected data to a final location in the SDRAM 84 n. The flash memory 86 n may be used to store firmware for the front end controller 88 and the back end controller 90. Generally, data may be read or written to or from the disc 92.

Referring to FIG. 4, a block diagram of the ECC module 100 is shown. The ECC module 100 generally comprises a circuit (or module) 102, an optional circuit (or module) 106, a circuit (or module) 108, a circuit (or module) 110, a circuit (or module) 112, a circuit (or module) 114 and a circuit (or module) 116. The circuit 100 may receive the signal INPUT at the circuit 102 and the circuit 108. The circuit 106 may receive the signal OUT1. The ECC module 100 may include the SDP interface (not shown). The circuit 106 may be implemented in the ECC module 100. The ECC block 100 may present data blocks to the scratch memory 96 in the external memory 84 n or to a final location directly in the external memory 84 n. An output signal (e.g., OUT2) may be generated by the circuit 106.

The signal IN1 may be arranged as a sequence of DVD RSPC blocks. The blocks may have a transfer rate of 5.91 milliseconds per block at a 4× speed. Processing of each row within the signal IN1 may be achieved in one implementation within 2800 clock cycles of a 100-megahertz clock. Each byte of data in the signal IN1 may be received by the row buffer circuit 102 and the row syndrome module 108 as a 9-bit unit every 15.4 clock cycles.

The ECC module 100 may be operational to perform a delta syndrome based iterative Reed-Solomon decoding method. The ECC module 100 generally saves only syndromes for rows and columns of a Reed-Solomon Product Code (RSPC) Error Correction Code (ECC) block (e.g., 50) in the local memory circuit 95. An iterative (alternating) decoding may be applied to delta syndrome changes by the delta syndrome module 116. After the iterative decoding completes, error correction results may be available in the local memory circuit 95 to correct the data received in the RSPC. As such, (i) the local memory size may be reduced to a fraction of a size for a conventional decoder and (ii) a memory access bandwidth utilization may be reduced to a minimum. The minimum memory access bandwidth generally allows the implementation of a unified memory access structure interface to the circuit 80′.

The ECC module 100 generally does not update the data received in the RSPC block 50 during the iterative decoding. Instead, results of the iterative decoding may be compressed and saved in the local memory circuit 95 and then applied to the data afterwards. For example, the results of the iterative decoding may be stored in the local memory circuit 95 in place of syndrome information.

The delta syndrome module 116 may be operational to update the column syndromes directly. A resulting effect on the column syndromes may be similar to conventionally updating the data and then recalculating the column syndromes. The RS decoder module 114 may be operational to row/column decode the row/column syndromes stored in the local memory circuit 95. The delta syndrome module 116 may be further operational to update the column/row syndromes based on the results of the row/column decoding conveyed in a signal (e.g., C).

When the circuit 100 receives a block of data in the signal IN1, the row syndrome module 102 may calculate the row syndromes. The row syndromes may be transferred in a signal (e.g., RS) to the local memory circuit 95 and saved.

The RS dispatcher module 112 may be operational to select each row syndrome shortly after being saved in the local memory circuit 95 and provide the selected row syndrome to the RS decoder module 114. In one embodiment, each newly generated row syndrome may be read from the local memory circuit 95 by the RS dispatcher module 112 in less than 208 clock cycles.

The RS decoder module 114 may be operational to generate row error correction data by decoding the row syndromes. The row error correction data may be transferred in a signal (e.g., B) to the row buffer circuit 102. The RS decoder module 114 may be arranged as a pipeline structure having a depth of 208 clock cycles. The pipeline may have 3 stages of 208 cycles each.

Dynamic control of the RS decoder module 114 may be independent of the first pass (e.g., pass 1) and the second pass (iterative decoding) (e.g., pass 2) of the decoding. A 10-bit identification (e.g., rs_id) may be used in the pipeline generally comprising (i) “00+row” for pass 1, (ii) “01+column” for pass 2 PO decoding, (iii) “10+row” for pass 2 PI decoding and (iv) “11+0×ff” for an idle slot. The identification “00” generally has a highest priority and may be used for pass 1 work. Identification “00” jobs may wait less than 208 cycles before being processed by the RS decoder module 114. A pass 2 job may be cancelled if a “00” job takes the slot. Identifications “01” and “10” have a second priority. A “01” job or a “10” job may be cancelled by a “00” job. Checks may be performed to see if “01” jobs or “10” jobs go completely through the pipeline. If a job is cancelled, the RS decoder module 114 may read the cancelled job again from the local memory circuit 104. Reading syndromes from the local memory circuit 104 generally has the lowest priority among memory accesses. An identification of “11” may be considered an idle slot indicating that no pass 1 or pass 2 jobs may be ready for decoding.

The RS decoder module 114 may process a received job within 208 cycles. The result of the processing may be sent to different process logic based on the “mode” and the identifications “00”, “01”, “10” and “11”. The row buffer circuit 102 may record all the information from the results generated by the RS decoder module 114. The row buffer circuit 102 may use the recorded information to correct errors in the data block rows during the first pass. The RS decoder module 114 may also be operational to organize the error values generated by the decoding and save the error values in the local memory circuit 95. Updating one or more Bit Error Rate (BER) counters may be performed by the RS decoder module 114. Furthermore, the RS decoder module 114 may record uncorrectable rows by a row identification number and uncorrectable columns by a column identification number.

The row buffer circuit 102 may be operational to buffer up to two full rows of the RSPC block 50 at any given time. The row buffer circuit 102 may be further operational to apply the row error correction information received in the signal B to the data as buffered. The corrected data may be presented to the final location in the external memory 84 n (or SDRAM). In one embodiment, the correction of the buffered data may be performed after 4×208 clock cycles. The data transfers to the external memory 84 n may be performed as 192 row writes at 28.4 microseconds per row. The data may also be transferred to the column syndrome module 110 as a 182-byte set.

The column syndrome module 110 may be operational to calculate the column syndromes substantially simultaneously with the syndrome module 108 calculating the row syndromes. The column syndromes may be transferred in a signal (e.g., CS) to the local memory circuit 95 and saved. The local memory circuit 95 may only save the row syndromes and the column syndromes of the RSPC block 50, but not the data from the signal IN1. The data block in the signal IN1 may be transferred by the row buffer circuit 102 to the external memory 84 n. The external memory 84 n may store the data block outside the ECC module 100 until the ECC module 100 is ready for further processing.

The column syndrome calculation may be completed after the entire RSPC block 50 has been received by the row buffer circuit 102. The RS dispatcher module 112 may dispatch row syndromes or column syndromes periodically (e.g., every 208 clock cycles) to the RS decoder module 114. The RS decoder module 114 may generate location and error value pairs based on the syndrome being decoded. The location and error value pairs may be transferred by a signal (e.g., C) to the local memory circuit 95 and saved.

The delta syndrome module 116 may be operational to perform the RSPC iterative decoding from row to column and column to row. During row-to-column and column-to-row switches, the delta syndrome module 116 may be used to update the appropriate syndromes. After the iterations reach a predefined limit or there are no more errors detected in the code, the iterating may be stopped. After the iterating is stopped, the decoding results may be save locally in place of syndrome. The decoding results may be available in the signal D for correcting the data block stored in the external memory circuit 84 n.

The iterative decoding is generally based only on delta syndromes. The decoding results may not be presented until the iterating has finished. Therefore, the correction of the data block may be delayed until all of the decoding has been completed and the error location and error value information have been saved in place of the syndromes. As such, usage of the local memory circuit 95 may be small. In one embodiment, the PI decoding may allow for the correction of up to 10 errors per row. A delta syndrome update to the 10 column syndromes may involve 4 reads and 4 writes for each of the 10 columns using 80 cycles.

The local memory circuit 95 generally comprises a first block (or module) 120 and a second block (or module) 122. Each of the blocks 120 and 122 may be used in decoding one RSPC block 60 at a time. Utilizing two memory blocks 120 and 122 generally permits the circuit 100 to start working on a subsequent RSPC block (e.g., a block n, at a time t) while calculations for a prior RSPC block (e.g., a block (n−1), at a time (t−1)) may be in progress.

The memory blocks 120 and 122 may be configured to store 9 bits per byte of information, save syndromes and save error location pairs. The syndrome data and the error location pairs may be distinguished by a most significant bit (MSB). Where MSB=0, the information may represent a syndrome. Where MSB=1, the information may be an error location pair.

The memory blocks 120 and 122 may provide separate (i) erasure based results and (ii) none-erasure based results. The erasure based results may be saved in a low address range without location. Locations may be common for all the rows or columns saved in a table. The error location pairs may be saved in a top address range with location bytes MSB=1. The memory blocks 120 and 122 may also record erasure degrees used in the RS decoder module 114.

For a DVD application, conventional methods utilize 80 kilobytes (Kbytes) of local memory whereas the circuit 100 may utilize a total of about 10 Kbytes. Furthermore, since the data block is only written once and read once from a final location in the external memory 84 n, a memory bandwidth supported by a bus carrying the signal OUT1 from the row buffer circuit 102 to the external memory circuit 84 n may operate at only twice a data rate of the RSPC block 50. The memory bandwidth may operate at twice the data rate if the final error correction is performed at the back end controller 90. The memory bandwidth may operate at three times the data rate of the RSPC block 50 if the final error correction is performed in the front end controller 88. For example, the data block may be (i) written in the scratch memory 96 (from the front end controller 88), (ii) read from the scratch memory 96 (data block sent back to the front end controller 88), and (iii) written to a final location in the external memory 84 n (from the front end controller 88). In addition, the circuit 100 may provide fast decoding compared to conventional methods, because each RS code is started from 10 or 16 bytes of syndrome instead of 182 or 208 bytes of data. Finally, implementation of the unified memory access structure generally reduces total system cost.

The ECC module 100 may implement a two-pass method, as mentioned above. In the first pass (e.g., pass 1), initial row syndromes and initial column syndromes may be generated and stored in the local memory circuit 95. In the second pass (e.g., pass 2), the iterative decoding of the syndromes may be used to update the stored syndromes.

Referring to FIG. 5, a block diagram of an example functional flow 140 of a first pass is shown. The function flow 140 generally comprises a step (or module) 142, a step (or module) 144, a step (or module) 146, a PI memory block (or module) 148, a step (or module) 150, a step (or module) 152 and a PO memory block (or module) 154. The signal IN1 may provide input data to the flow 140. The signal OUT1 may be presented as an output to the external memory 84 n. The PI memory block 148 and the PO memory block 154 may reside in the local memory 95.

The first pass generally starts with a reception of the data block in the signal IN1 from an eight-to-fourteen demodulation (not shown). The data may be received as a byte of information within a 9-bit package, with the most significant bit acting as an erasure flag. In one embodiment, a minimum time between bytes may be 12 clock cycles.

The first pass may include calculating the row syndromes from the data block in the step 146 and calculating erasure locator polynomials from the data block in the step 144. The row syndromes may be stored in the PI memory block 148. The data block may be subject to a row buffering 142 (e.g., row buffer 102).

The row syndromes and the erasure locator polynomials may be provided to a decoding 150. The decoding 150 (e.g., RS decoder 114) may operate on the received row syndrome to generate a result. The result may include row correct error information. The row buffer 142 may use the row error corrections to update the data block prior to presenting the data block in the signal OUT1. Since the detected errors may have been corrected, an appropriate row in the PI memory block 148 may be reset to zero as an indication that no errors were detected and/or errors have been corrected. Otherwise, the row may be marked as uncorrectable. As the data block is presented (e.g., at 1 byte per 8 clock cycles) to the final location in the external memory 84 n, the column syndromes may be calculated in step 152 and saved in the PO memory block 154.

Referring to FIG. 6, a block diagram of an example functional flow 160 of a second pass is shown. The second pass generally comprises the PI memory block 148, the decoding block 150, the PO memory block 154, a row table block (or module) 162, a step (or module) 164, a step (or module) 165, a step (or module) 166 and a column table step (or module) 168.

The second pass may start after receiving all of the data block and one extra row time to process the last row. Iteration counters may then be reset and row erasure locator polynomial may be calculated by the step 164. A column syndrome may then be read from the PO memory block 154. If the column syndrome is zero, a next column may be considered. Once a non-zero column syndrome is found, the non-zero column syndrome may be provided to the decoding step 150 (e.g., RS decoder 114). The decoding generally provides results back to the PO memory block 154 and the PI memory block 148. The delta syndromes may be calculated for the respective rows and the row syndromes may be updated accordingly. The updated syndromes may be saved back into to PI memory block 148.

The row syndrome may be read from PI memory block 148. If a particular row syndrome is zero, a next row syndrome may be checked. If not, a decoding job for the particular row syndrome may be set to the decoding step 150. The decoding step 150 generally returns results. The results may be used to calculate the column delta syndromes. Afterwards, the updated column syndromes may be saved in the PO memory block 154 and the row marked as decoded.

Iterations may continue with the columns again until an iteration counter 165 is met or erasure decoding is used once. After the iterations have completed, a done signal may be presented and a check of a ready signal may be performed. The second pass may continue with organizing data from the PI/PO memories 148/154 in row order which may then be sent via the SDP interface to reside in the final location of the external memory 84 n. After all of the error correction data is sent out, (i) an end signal may be generated, (ii) the error counter registers may be updated and (iii) the process waits for a next RSPC block 50.

Calculate Erasure Polynomial: If an erasure is flagged at location j within the code word, then a^(−j) may be a root of an erasure locator polynomial (e.g., PER). The erasure locator polynomial PER may be expressed as follows: PER=(x+a ^(−j1))(x+a ^(−j1)) . . . (x+a ^(−je))  Eq. (1) Note that the location j is generally labeled different in DVD specifications and papers as compared to Reed-Solomon papers. In the DVD documentation, a first byte is commonly labeled as “0” and a last byte as “N−1”. In Reed-Solomon coding papers, a GF(256) code may be N=255 bytes length, thus a first byte is commonly labeled “254” and a last byte is labeled “0”. Any N less than 255 may be called a shortened code. The parity R bytes are generally the last R bytes of the code. For a case of DVD PO code of N=208, a location of the first byte may be 207. If there is an error at the first byte, the location may be referred to as a⁻²⁰⁷.

Reading the DVD data in the first pass may include generating an erasure locator polynomial. Let “d” be a degree of the erasure locator polynomial PER, where d<=10. At most d=10 so the polynomial may have 11 items as follows: PER=er ₀ x ¹⁰ +er ₁ x ⁹ +er ₂ x ⁸ + . . . +er ₁₀ x ⁰  Eq. (2) For any degree d, the erasure locator polynomial may be expressed as follows: PER=er ₀ x ^(d) +er ₁ x ^(d−1) +er ₂ x ^(d−2) + . . . +er _(d) x ⁰  Eq. (3) Starting from d=0: PER=er₀x⁰, where er₀=1  Eq. (4) Calculate new erasure polynomial (e.g., PER_(new)): PER _(new) =PER*(x+a ^(−j)), where j is a byte locator  Eq. (5) For byte 0 in the data stream, a value of j may equal 181. Thereafter, a^(−j) may be updated for every byte received as follows: a ^(−(j+1)) =a ^(−j) *a ⁻¹  Eq. (6) If MSB=0, no erasure may be performed for the byte. If MSB=1, PER may be updated as follows: $\begin{matrix} \begin{matrix} {{PER}_{new} = {{PER}*\left( {x + a^{- j}} \right)}} \\ {= {\left( {{{er}_{0}x^{d}} + {{er}_{1}x^{d - 1}} + {{er}_{2}x^{d - 2}} + \ldots + {{er}_{d}x^{0}}} \right)*}} \\ {\left( {x + a^{- j}} \right)} \\ {= {{{er}_{0}x^{d + 1}} + {\left( {{{er}_{0}*a^{- j}} + {er}_{1}} \right)x^{d}} +}} \\ {{\left( {{{er}_{1}*a^{- j}} + {er}_{2}} \right)x^{d - 1}} + \ldots +} \\ {{\left( {{{er}_{d - 1}*a^{- j}} + {er}_{d}} \right)x^{1}} + {{er}_{d}*a^{- j}x^{0}}} \end{matrix} & {{Eq}.\quad(7)} \end{matrix}$

Referring to FIG. 7, a block diagram of an example implementation of a circuit 180 for generating the error locator polynomial PER is shown. The circuit (or module) 180 generally comprises multiple registers 182 a-182 n, a register 184, a multiplier 186, and adder 188 and a multiplier 190. The registers 182 a-182 n may be connected in series with the last two registers 182 (n−1) and 182 n having outputs connected to inputs of the multiplier 186 and the adder 188, respectively. An output of the multiplier 186 may be connected to a second input of the adder 188. An output of the adder 188 may be connected to an input of the first register 182 a. An output of the register 184 may be connected to a second input of the multiplier 186 and an input of the multiplier 190. A second input of the multiplier 190 may receive a signal (e.g., E). An output of the multiplier 190 may be connected to an input of the register 184. Other designs of the circuit 180 may be implemented to meet the criteria of a particular application.

Calculate Syndromes: For a Reed-Solomon (RS) code word of (N, K), where N is a code word length in bytes and K is a number of information bytes, an R number of syndromes may be calculated by evaluating R number of roots of the polynomial g(x). Assume the received code word is shown in equation 3 above, then: s ₀ =C(a ⁰), s ₁ =C(a ¹), . . . , s _(R−1) =C(a ^(R−1)) The syndrome polynomial is generally expressed as follows: s(x)=s _(R−1) x ^(R−1) +s _(R−2) x ^(R−2) + . . . +s ₁ x+s ₀  Eq. (8)

Referring to FIG. 8, a block diagram of an example implementation of a circuit 200 for generating the syndromes is shown. The circuit 200 generally comprises multiple register 202 a-202 n, several multipliers 204 a-204 n, several adders 206 a-106 n and a register 208. An output of the register 208 may be connected to one input of each of the adders 206 a-206 n. A second input to each adder 206 a-206 n may be connected to an output of a respective multiplier 204 a-204 n. An output of each adder 206 a-206 n may be connected to an input of a respective register 202 a-202 n. An input to each of the multipliers 204 a-204 n may receive a multiplication constant. A second input of each multiplier 204 a-204 n may be connected to an output of a respective register 202 a-202 n.

Referring to FIG. 9, a block diagram of a system 80″ of an alternative embodiment of the present invention is shown. The SDRAM 84 n may be shared with the front end controller 88 and the back end controller 90. The flash memory that is normally coupled to the back end controller 90 may be moved into the “boot region” of the HDD 92. In general, present standalone HDD drives have a respective program stored in the boot region of the HDD 92. The system 80″ may need a new interface definition between the back end controller 90 and the hard disc drive 92. The new interface definition may be needed when the HDD 92 boots up first after power up transfers program code to the back end controller 90.

As used herein, the term “simultaneously” is meant to describe events that share some common time period but the term is not meant to be limited to events that begin at the same point in time, end at the same point in time, or have the same duration.

The function performed by the flow diagram of FIGS. 5-6 may be implemented using a conventional general purpose digital computer programmed according to the teachings of the present specification, as will be apparent to those skilled in the relevant art(s). Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will also be apparent to those skilled in the relevant art(s).

The present invention may also be implemented by the preparation of ASICs, FPGAs, or by interconnecting an appropriate network of conventional component circuits, as is described herein, modifications of which will be readily apparent to those skilled in the art(s).

The present invention thus may also include a computer product which may be a storage medium including instructions which can be used to program a computer to perform a process in accordance with the present invention. The storage medium can include, but is not limited to, any type of disk including floppy disk, optical disk, CD-ROM, magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, Flash memory, magnetic or optical cards, or any type of media suitable for storing electronic instructions.

While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that various changes 

1. An apparatus comprising: a first circuit configured to (i) extract video data as data blocks from an input signal and (ii) perform error correction on said data blocks with a delta syndrome based iterative Reed-Solomon decoding; a second circuit configured to (i) decode corrected video data into a video format in a first state, (ii) encode said corrected video data in a second state and (iii) share an external memory with said first circuit; and a disc configured to store encoded video data in said second state.
 2. The apparatus according to claim 1, wherein said first circuit comprises an error correction code module.
 3. The apparatus according to claim 2, wherein said error correction code module comprises: a row syndrome module configured to calculate a plurality of row syndromes for a data block arranged as a Reed-Solomon product code; a column syndrome module configured to calculate a plurality of column syndromes from said data block; a decoder module configured to alternatingly (i) decode said column syndromes to generate column correction results and (ii) decode said row syndromes to generate row correction results; and a delta syndrome module configured to (i) update said row syndromes in response to said column correction results and (ii) update said column syndromes in response to said row correction results.
 4. The apparatus according to claim 3, further comprising a local memory coupled to said row syndrome module, said column syndrome module, said delta syndrome module and said decoder module, wherein said local memory is configured to store said row syndromes and said column syndromes for said data block.
 5. The apparatus according to claim 4, further comprising a buffer connected to an output and configured to (i) store at least two rows of said data block and (ii) present said data block to both said output and said column syndrome module one row at a time.
 6. The apparatus according to claim 5, wherein an external memory is coupled to said second circuit with said output and configured to store said data block as presented from said buffer.
 7. The apparatus according to claim 4, wherein said local memory is further configured to store a plurality of second row syndromes and a plurality of second column syndromes for a second data block substantially simultaneously with storing said row syndromes and said column syndromes for said data block.
 8. The apparatus according to claim 7, wherein said row syndrome module is further configured to write said second row syndromes for said second data block substantially simultaneously with said delta syndrome module updating said row syndromes and said column syndromes for said data block.
 9. The apparatus according to claim 4, further comprising a dispatcher module connected between said local memory and said decoder module and configured to present a plurality of decode jobs from said local memory to said decode module based on a respective priority of said decode jobs.
 10. The apparatus according to claim 9, wherein each of said decode jobs comprises one of decoding said row syndromes and decoding said column syndromes.
 11. The apparatus according to claim 1, wherein said first circuit communicates with said second circuit via a stream data interface plus connection.
 12. A method for creating a unified memory architecture for recording data: (A) extracting video data as data blocks from an input signal with a first circuit; (B) receiving said video data as data blocks with a third circuit and performing error correction on said data blocks with a delta syndrome based iterative Reed-Solomon decoding; (C) decoding corrected video data into a video format in a first state; (D) encoding said corrected video data to write said corrected video data to a disc in a second state; and (E) sharing an external memory between said first circuit and a second circuit.
 13. The method according to claim 12, further comprising the steps of: (F) calculating a plurality of row syndromes and a plurality of column syndromes for each of said data blocks arranged as a Reed-Solomon product code; and (G) storing only said row syndromes and said column syndromes in a local memory.
 14. The method according to claim 13, further comprising the step of: (H) in an alternating sequence (i)(a) decoding said column syndromes to generate column correction results and (b) decoding said row syndromes to generate row correction results, and (ii)(a) updating said row syndromes in response to said column correction results and (b) updating said column syndromes in response to said row correction results.
 15. The method according to claim 14, further comprising the step of: buffering a plurality of rows from said data block substantially simultaneously with said calculating said row syndromes.
 16. The method according to claim 15, further comprising the step of: storing at least two rows of said data block in a buffer connected to an output; and presenting said data block to said external memory and said column syndrome module one row at a time.
 17. The method according to claim 15, further comprising the step of: storing a plurality of second row syndromes and a plurality of second column syndromes for a second data block in said local memory substantially simultaneously with storing said row syndromes and said column syndromes for said data block.
 18. The method according to claim 14, wherein the step (F) and step (G) are performed in a first pass through a circuit and step (H) is performed in a second pass through said circuit.
 19. The method according to claim 12, wherein step (D) further comprises the step of: performing said error correction at a time t in a first pass on a data block n; and performing said error correction at a said time t in a second pass on a data block n−1.
 20. An apparatus comprising: means for extracting video data as data blocks from an input signal with a first circuit; means for receiving said video data as data blocks with a third circuit and performing error correction on said data blocks with a delta syndrome based iterative Reed-Solomon decoding; means for decoding corrected video data into a video format in a first state; means for encoding said corrected video data to write said corrected video data to a disc in a second state; and means for sharing an external memory between said first circuit and a second circuit. 